﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.SupportingSystems.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.SupportingSystems
{
    /// <summary>
    /// 配套制度服务接口
    /// </summary>
    public interface ISupportingSystemAppService : IApplicationService
    {
        #region 配套制度管理

        /// <summary>
        /// 根据查询条件获取配套制度分页列表
        /// </summary>
        Task<PagedResultDto<SupportingSystemListDto>> GetPagedSupportingSystemsAsync(GetSupportingSystemInput input);

        /// <summary>
        /// 通过Id获取配套制度信息进行编辑或修改 
        /// </summary>
        Task<GetSupportingSystemForEditOutput> GetSupportingSystemForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取配套制度ListDto信息
        /// </summary>
        Task<SupportingSystemListDto> GetSupportingSystemByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改配套制度
        /// </summary>
        Task CreateOrUpdateSupportingSystemAsync(CreateOrUpdateSupportingSystemInput input);





        /// <summary>
        /// 新增配套制度
        /// </summary>
        Task<SupportingSystemEditDto> CreateSupportingSystemAsync(SupportingSystemEditDto input);

        /// <summary>
        /// 更新配套制度
        /// </summary>
        Task UpdateSupportingSystemAsync(SupportingSystemEditDto input);

        /// <summary>
        /// 删除配套制度
        /// </summary>
        Task DeleteSupportingSystemAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除配套制度
        /// </summary>
        Task BatchDeleteSupportingSystemAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取配套制度信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetSupportingSystemToExcel();

        #endregion

    }
}
